
import { http, Method } from "@/utils/request.js";
import api from '@/config/api.js';

export function getGroupList(params){
	return http.request({
	  url: `room/getGroupList`,
	  method: Method.GET,
	  data:params
	});
}
export function getBuildingList(params){
	return http.request({
	  url: `room/getBuildingList`,
	  method: Method.GET,
	  data:params
	});
}

export function getUnitList(params){
	return http.request({
	  url: `room/getUnitList`,
	  method: Method.GET,
	  data:params
	});
}
export function getRoomList(params){
	return http.request({
	  url: `room/getRoomList`,
	  method: Method.GET,
	  data:params
	});
}

//绑定房屋
export function bindRoom(params){
	return http.request({
	  url: `room/bind`,
	  method: Method.POST,
	  data:params
	});
}
